package org.example.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.model.Sysrole;

import java.util.List;

@Mapper
public interface ResourcesDao {
    @Select("select * from sys_role where role_name like concat('%',#{username},'%') or remark like concat('%',#{username},'%')")
    List<Sysrole> systemList(String username);

    @Delete("DELETE FROM sys_role WHERE sys_role.role_id = #{id}")
    int delete(Integer id);

}
